package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping
public class WmUserController {

    @Autowired
    private WmUserService wmUserService;
    /**
     * 开通自媒体账号
     */
    @PostMapping("/save")
    public ResponseResult saveWmUser(@RequestBody ApUser apUser){
        return wmUserService.saveWmUser(apUser);
    }
}
